package com.norteksoft.erm.model;

/**
 * 关联用户
 * 
 * @hibernate.class table="ERM_RELATEUSER"
 */
public class RelateUser extends BaseObject {

	private static final long serialVersionUID = -7376279998130497359L;

	private Long OID = new Long(-1);// OID

	// 关联者OID
	private Long fromUserOID;

	// 关联者userName
	private String fromUserName;

	// 被关联者OID
	private Long toUserOID;

	// 被关联者帐号
	private String toUserName;

	// 被关联者姓名
	private String toUserRealName;

	// 被关联者状态
	private String toUserState;

	/**
	 * @hibernate.id column="OID" unsaved-value="-1" type="long"
	 * @hibernate.generator class="sequence"
	 * @hibernate.param name="sequence" value="ERM_SEQUENCE"
	 */

	public Long getOID() {
		return OID;
	}

	public void setOID(Long oid) {
		OID = oid;
	}

	/**
	 * @hibernate.property column="FROMUSEROID" type="long"
	 * @return Long
	 */

	public Long getFromUserOID() {
		return fromUserOID;
	}

	public void setFromUserOID(Long fromUserOID) {
		this.fromUserOID = fromUserOID;
	}

	/**
	 * @hibernate.property column="FROMUSERNAME" length="60" type="string"
	 * @return String
	 */

	public String getFromUserName() {
		return fromUserName;
	}

	public void setFromUserName(String fromUserName) {
		this.fromUserName = fromUserName;
	}

	/**
	 * @hibernate.property column="TOUSERNAME" length="60" type="string"
	 * @return String
	 */

	public String getToUserName() {
		return toUserName;
	}

	public void setToUserName(String toUserName) {
		this.toUserName = toUserName;
	}

	/**
	 * @hibernate.property column="TOUSEROID" type="long"
	 * @return Long
	 */
	public Long getToUserOID() {
		return toUserOID;
	}

	public void setToUserOID(Long toUserOID) {
		this.toUserOID = toUserOID;
	}

	/**
	 * @hibernate.property column="TOUSERREALNAME" length="60" type="string"
	 * @return String
	 */
	public String getToUserRealName() {
		return toUserRealName;
	}

	public void setToUserRealName(String toUserRealName) {
		this.toUserRealName = toUserRealName;
	}

	/**
	 * @hibernate.property column="TOUSERSTATE" length="10" type="string"
	 * @return String
	 */

	public String getToUserState() {
		return toUserState;
	}

	public void setToUserState(String toUserState) {
		this.toUserState = toUserState;
	}

}